/*
 * ClosePanelEvent.cpp
 *
 *  Created on: Feb 14, 2012
 *      Author: hzheng
 */

#include "ClosePanelEvent.h"
#include "typedefine.h"
#include "errorcode.h"
#include "Frame.h"

namespace NS_LCD_AFW
{

CClosePanelEvent::CClosePanelEvent()
{
	this->setEventId(PANEL_CLOSE_EVENT_ID);
}

CClosePanelEvent::~CClosePanelEvent()
{
}

int CClosePanelEvent::doProcess(CFrame *pFrameEventHandler)
{
	if (NULL != pFrameEventHandler)
	{
		return pFrameEventHandler->onClose();
	}
	else
	{
		return ERR_INVALID_EVENTHANDLER;
	}
}

} /* namespace NS_LCD_AFW */
